<extend name="desktop_default/template/user/base_user" />
<block name="area_header">
    <link rel="stylesheet" href="__CSS__/user/aftersale/style.css">
</block>

<block name="area_top">

</block>
<block name="user_top">

</block>
<block name="main_content">
    <div class="aftersale">
        <div class="user-tab">
            <a class="selected" href="javascript:void(0);">售后记录</a>
        </div>
        <div class="record-list">
            <table width="100%">
                <thead>
                <tr>
                    <th>
                        售后编号
                    </th>
                    <th>
                        订单编号
                    </th>
                    <th>
                        售后原因
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        申请时间
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                </thead>
                <tbody>
                <empty name="list">
                    <tr><td colspan="6" align="center">无记录</td></tr>
                    <else/>
                    <volist name="list" id="vo">
                        <tr>
                            <td>{$vo.create_time|date='YmdHis',###}{$vo.refund_id}</td>
                            <td><a href="{:U('mengwu/user/order_detail',array('order_code'=>$vo['order_code']))}" target="_blank">{$vo.order_code}</a></td>
                            <td align="center">{$vo.reason}</td>
                            <td align="center">
                                <switch name="vo.valid_status" >
                                    <case value="0">待审核</case>
                                    <case value="1">同意</case>
                                    <case value="2">驳回</case>
                                    <default />
                                </switch>
                            </td>
                            <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                            <td align="center"><a href="{:U('mengwu/user/aftersale_detail',array('id'=>date('YmdHis').$vo['refund_id']))}">查看详情</a></td>
                        </tr>
                    </volist>
                </empty>
                </tbody>
            </table>
            <notempty name="list">
                {$show}
            </notempty>
        </div>


    </div>

</block>
<block name="area_footer">

</block>
